﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class CurrentPlayerOnceBeforeRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  47 ;

        public string avatar { get; set; }
        public string name { get; set; }
        public bool isZhuang { get; set; }
        public int userID { get; set; }
        public int locationInde { get; set; }
        public int[] cards { get; set; }
        public string cardType { get; set; }
        public int settleScore { get; set; }

        public void decode(Input _in)
        {
            avatar = _in.readString();
            name = _in.readString();
            isZhuang = _in.readBoolean();
            userID = _in.readInt();
            locationInde = _in.readInt();
            cards = _in.readIntArray();
            cardType = _in.readString();
            settleScore = _in.readInt();
        }

        public void encode(Output _out)
        {      
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("CurrentPlayerOnceBeforeRet[avatar={0}, name= {1},  isZhuang= {2}, locationInde= {3}, cards ={4}，" +
                                 " cardType ={5},settleScore={6},] ", avatar, name , isZhuang, locationInde, cards, cardType, settleScore);
        }
    }
}